﻿@model QLNhaHangTiecCuoi.Models.ThucDon

@{
    ViewBag.Title = "Thêm mới thực đơn";
    Layout = "~/Views/Shared/_LayoutQLNhaBep.cshtml";
}
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()

    <div class="form-horizontal">
        @Html.ValidationSummary(true)
        <fieldset>
            <div>
                <div class="wrapper">
                    <h1>Thêm mới thực đơn</h1>
                </div>
                <div>
                    <table class="center">
                        <tr>
                            <td>
                                <label for="code" id="label">Tên thực đơn:</label>
                            </td>
                            <td>
                                @Html.TextBoxFor(model => model.TenTD, new { @class = "textbox", maxlength = 50 })<b style="color: red"> *</b>
                                @Html.ValidationMessageFor(model => model.TenTD)
                            </td>
                        </tr>
                        <tr>
                            <td><label for="code" id="label">Mô tả:</label></td>
                            <td>
                                @Html.TextBoxFor(model => model.MoTa, new { @class = "textbox" })<b style="color: red"> *</b>
                                @Html.ValidationMessageFor(model => model.MoTa)
                            </td>
                        </tr>
                        <tr>
                            <td><label for="code" id="label">Hình ảnh:</label></td>
                            <td>
                                @Html.TextBoxFor(model => model.HinhAnh, new { @class = "textbox" })
                                @Html.ValidationMessageFor(model => model.HinhAnh)
                            </td>
                        </tr>
                    </table>
                    <div class="wrapper"><input type="submit" value="Thêm" class="btn btn-large btn-success button" /></div>
                </div>
            </div>
        </fieldset>
    </div>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
